<?php

namespace Home\Controller;
use Think\Controller;
class SanjixiangguanController extends Controller{
    
public function index(){

     $price = M('attr')->getfield('gid,price');

     //查询第三级分类相关商品
      $sort=I('get.id');
      $sort=M('good')->where(['sort'=>$sort])->select();
      // dump($sort);die;
      $this->assign('sort',$sort);
      $this->assign('price',$price);
      $this->display();
}

   
}